package com.rbac.ssm.dao;

import com.rbac.ssm.domain.Traveller;
import com.rbac.ssm.domain.TravellerExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravellerMapper {

    //通过订单的id查询所对应的游客数据
    List<Traveller> selectByOrdersId(Integer oid);

    long countByExample(TravellerExample example);

    int deleteByExample(TravellerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Traveller record);

    int insertSelective(Traveller record);

    List<Traveller> selectByExample(TravellerExample example);

    Traveller selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Traveller record, @Param("example") TravellerExample example);

    int updateByExample(@Param("record") Traveller record, @Param("example") TravellerExample example);

    int updateByPrimaryKeySelective(Traveller record);

    int updateByPrimaryKey(Traveller record);
}
